<?php

use yii\helpers\Html;
//use yii\widgets\DetailView;
use kartik\detail\DetailView;

/**
 * @var yii\web\View $this
 * @var backend\modules\trancfg\models\Pubtrandict $model
 */

$this->title = $model->MTID;    
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '交易字典'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="pubtrandict-view">

    <!-- <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a(Yii::t('app', '修改'), ['update', 'MTID' => $model->MTID, 'IOFLAG' => $model->IOFLAG, 'SEQNO' => $model->SEQNO], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('app', '删除'), ['delete', 'MTID' => $model->MTID, 'IOFLAG' => $model->IOFLAG, 'SEQNO' => $model->SEQNO], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('app', '确定删除这条记录吗?'),
                'method' => 'post',
            ],
        ]) ?>
    </p> -->

    <?= DetailView::widget([
        'model' => $model,
        'condensed'=>true,
        'hover'=>true,
        'mode'=>DetailView::MODE_VIEW,
        'panel'=>[
            'heading'=>'交易字典 / ' . $model->MTID,
            'type'=>DetailView::TYPE_INFO,
        ],
        'attributes' => [
            'MTID',
            'ROUTEID',
            'IOFLAG',
            'SEQNO',
            'DICTCODE',
            'DICTTYPE',
            'DICTLEN',
            'DECLEN',
            'DICTNAME',
            'FLAG',
            'SUBMARK',
            'SUBCOND',
            'FIELD',
            //'PATH',
            'DEFVAL',
            'DEALFUNC',
            'MEMO',
            ['attribute'=>'PATH', 'type'=>DetailView::INPUT_TEXT],
        ],
        'deleteOptions' => [
            'url' => [ 
                'delete',
                'MTID' => $model->MTID,
                'IOFLAG' => $model->IOFLAG,
                'SEQNO' => $model->SEQNO 
            ],
            'data' => [
                'confirm' => Yii::t('app', '确定删除这条记录吗?'),
                'method' => 'post',
            ],
        ],
    ]) ?>

</div>
